package com.example.camera2application;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import androidx.annotation.Nullable;


public class PhotoDbHelper extends SQLiteOpenHelper {
    public PhotoDbHelper(@Nullable Context context, @Nullable String name, @Nullable SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }



    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL("create table "+PhotoDbSchema.NAME+"("+
                "_id integer primary key autoincrement, "+
                PhotoDbSchema.Cols.UUID+", "+
                PhotoDbSchema.Cols.NAME+", "+
                PhotoDbSchema.Cols.DATE+")");
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
    }
}
